using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.ComponentModel;
using EcsSiteDSTableAdapters;

namespace SiteECSWeb
{
    [DataObject]
    public class AuthorityTypeBLL
    {
        private AuthorityTypeTableAdapter _AuthorityTypeAdapter = null;

        protected AuthorityTypeTableAdapter AuthorityTypeAdapter
        {
            get
            {
                if (_AuthorityTypeAdapter == null)
                {
                    _AuthorityTypeAdapter = new AuthorityTypeTableAdapter();
                }
                return _AuthorityTypeAdapter;
            }
        }

        #region SelectAuthorities
        [DataObjectMethodAttribute(DataObjectMethodType.Select, true)]
        public EcsSiteDS.AuthorityTypeDataTable GetAuthorityTypeRowRank()
        {
            return AuthorityTypeAdapter.GetAuthorityTypeRowRankData();
        }

        [DataObjectMethodAttribute(DataObjectMethodType.Select, false)]
        public EcsSiteDS.AuthorityTypeDataTable GetAuthorityTypeByRowRank(int RowRank)
        {
            return AuthorityTypeAdapter.GetAuthorityTypeDataByRowRank(RowRank);
        }
        #endregion

    }
}
